namespace Expect.Documentation.Reporting
{
    using System;
    using Expect.Core;
    using Expect.Core.Fixtures;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    
    
    // This file is generated, if you modify content you will lose your modifications when the generator will regenerate the file
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Expect.Core", "0.5.2.0")]
    [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [TestClass()]
    [SpecificationContainerAttribute(Name="Organizing your document with reportdata", Path="\\Reporting\\Organizing your document with reportdata.expect")]
    public partial class OrganizingYourDocumentWithReportdataContainer : Expect.Core.AbstractSpecificationContainer
    {
        
        partial void PrepareContextExtension();
        
        partial void BeforeInitExtension();
        
        partial void AfterInitExtension();
        
        partial void BeforeTeardownExtension();
        
        partial void AfterTeardownExtension();
        
#line 1 "Organizing your document with reportdata.expect"
#line hidden
        
        public override void InitializeContext()
        {
            base.InitializeContext();
            PrepareContextExtension();
        }
        
        [TestInitialize()]
        public virtual void OrganizingYourDocumentWithReportdataClass_TestInit()
        {
            InitializeContext();
            BeforeInit();
            BeforeInitExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterInit();
            AfterInitExtension();
        }
        
        [TestCleanup()]
        public virtual void OrganizingYourDocumentWithReportdataClass_TestTeardown()
        {
            BeforeTeardown();
            BeforeTeardownExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterTeardown();
            AfterTeardownExtension();
        }
        
        // TestComment
        [TestMethod()]
        public virtual void OrganizingYourDocumentWithReportdata()
        {
            SpecificationDefinition spec = new SpecificationDefinition();
            Get_OrganizingYourDocumentWithReportdata(spec);
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }
        }
        
        [SpecificationProviderAttribute(Name="Organizing your document with reportdata")]
        public virtual void Get_OrganizingYourDocumentWithReportdata(Expect.Core.SpecificationDefinition spec)
        {
            spec.Context = Context;
            spec.Name = "Organizing your document with reportdata";
            FixtureDefinition fixture = null;

            fixture = spec.AddFixture<DescriptionFixture>();
#line 1
            fixture.WithRow("By default, Expect will take the elements as they come. To get a decent report yo" +
                    "u have to tell in what order the elements must appear. This is done with another" +
                    " item called \"reportdata\"");
#line 2
            fixture.WithRow("You could define one reportdata item on each node in you arborescence by right cl" +
                    "icking on the solution explorer and choosing \"Add new item > Expect report metad" +
                    "ata\".");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<DescriptionFixture>();
#line 4
            fixture.WithRow("The syntax is very easy, on each line, you put the name of the file, without the " +
                    "\".expect\" extension, or the name of a folder enclosed in angle brackets. ");
#line 5
            fixture.WithRow("!For example :!");
#line 6
            fixture.WithRow("{{");
#line 7
            fixture.WithRow("A name of expect file");
#line 8
            fixture.WithRow("[A folder name]");
#line 9
            fixture.WithRow("}}");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<DescriptionFixture>();
#line 11
            fixture.WithRow("You order elements like you want them to appear in the report.");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<DescriptionFixture>();
#line 13
            fixture.WithRow("If a folder contains a reportdata item, only the elements listed in the reportdat" +
                    "a file will appear on the report.");
#line hidden
            fixture.EndRun();

        }
    }
}
